<template>
  <div id="app">
    <van-nav-bar
      title="cs-2002"
      left-text="返回"
      left-arrow
    />
    <router-view />
    <van-tabbar v-model="active">
      <van-tabbar-item
        icon="home-o"
        to="/home"
      >Home</van-tabbar-item>
      <van-tabbar-item
        icon="friends-o"
        to="/frients"
      >Frients</van-tabbar-item>
      <van-tabbar-item
        icon="cart-o"
        to="/cart"
        badge='6'
      >Cart</van-tabbar-item>
      <van-tabbar-item
        icon="search"
        to="/search"
      >Search</van-tabbar-item>
    </van-tabbar>

  </div>
</template>
<script>
export default {
  data() {
    return {
      active: 0
    }
  }
}
</script>
<style lang='less' scoped>
</style>
